<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page language="java"  import="recommenRatings.domain.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Asignar Imagen Foto</title>
</head>
<body>
<table summary ="Listado de Amigos" cellSpacing="1" cellPadding="6" width="770" align="center" border="0">
	<tr valign ="middle" align="center">
		<td  colspan="6"><b>Amigos</b></td>
	</tr>
	<tr valign ="middle" align="center" id="cabecera">
		<td>&nbsp;</td><td>Nombre Apellidos Usuario</td>
	</tr>
<%      String currentUser = (String) session.getAttribute("session.user");
        PhotoManager pm = new PhotoManager(currentUser);
        Set<String> amigos = pm.getAsigFriends();
        Set<User> asigfriends = pm.findUser(amigos);
        for(User u:asigfriends){
%>
        <tr align="center" id="Amigos">
    			<td>--</td>
        		<td> <%=u.getName()%> </td>
        		<td> <%=u.getSurname()%> </td>
        		<td> <%=u.getUsername()%> </td>
        		</tr>
        	<%
        			}
        	%>
</table>
</body>
</html>